xen/arm: Use PSCI-0.2 for machine_halt/restart by default
authorSuravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Fri, 3 Oct 2014 14:31:11 +0000 (09:31 -0500)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 14 Oct 2014 09:19:39 +0000 (10:19 +0100)
commite456d46ce0e17f88c0fcebea75b02d931bddcb9a
tree762deb839c25aae3e3b08a60de4b06ee26222f9b
parent4d3d72c0146776e7c8efe6e531561bcbdab1cea7
xen/arm: Use PSCI-0.2 for machine_halt/restart by default

"machine_halt()" and "machine_restart()" are modified to use PSCI interface
by default if PSCI-0.2 is supported. The "raw_machine_reset()" is also removed
since this is unnecessary.

Also, machine_halt() is modified to add 10ms delay to make sure all auxiliary CPUs
are offlined before calling the shutdown.

For non-PSCI, platform_poweroff() and platform_reset() are used instead.

Signed-off-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/shutdown.c